import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { DictIntIntHelper } from "./DictIntIntHelper";
import { SEntityId } from "./SEntityId";
type int = number;
//class SEatBeansResult
    
    export  class SEatBeansResult
    {
       

        public __write(arg1: SerializeStream): void
        {
            this.entityId.__write(arg1);
            arg1.writeString(this.name);
            arg1.writeByte(this.camp);
            arg1.writeByte(this.sex);
            arg1.writeByte(this.avatarId);
            arg1.writeInt(this.kill);
            arg1.writeInt(this.beans);
            arg1.writeInt(this.mark);
            arg1.writeInt(this.exp);
            arg1.writeInt(this.priceUnit);
            arg1.writeInt(this.price);
            DictIntIntHelper.write(arg1, this.itemAmount);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(arg1);
            this.name = arg1.readString();
            this.camp = arg1.readByte();
            this.sex = arg1.readByte();
            this.avatarId = arg1.readByte();
            this.kill = arg1.readInt();
            this.beans = arg1.readInt();
            this.mark = arg1.readInt();
            this.exp = arg1.readInt();
            this.priceUnit = arg1.readInt();
            this.price = arg1.readInt();
            this.itemAmount = DictIntIntHelper.read(arg1);
            return;
        }

        public /* var */entityId: SEntityId;

        public /* var */name: string;

        public /* var */camp: int;

        public /* var */sex: int;

        public /* var */avatarId: int;

        public /* var */kill: int;

        public /* var */beans: int;

        public /* var */mark: int;

        public /* var */exp: int;

        public /* var */priceUnit: int;

        public /* var */price: int;

        public /* var */itemAmount: Map<any, any> /* flash.utils.Dictionary */;
    }
